<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div th:replace="common/top"></div>

<div id="BackLink">
    <a href="/catalog/view">Return to Main Menu</a>
</div>

<div id="Catalog">

    <h2>please fill in the relevant information of new item</h2>

    <!--    todo:提交到后台-->
    <form action="/catalogM/addItem" >
        <table>
        <tr>
            <label><th>itemId:</th><th><input type="text" name="itemId"></th></label>
        </tr>
        <tr>
            <th>所属product</th>
            <th>
                <select name="productId">
                    <option th:each="product:${productList}" th:text="${product.productId}" th:value="${product.productId}" ></option>
                </select>
            </th>
        </tr>
        <tr><label><th>listprice:</th><th><input type="text" name="listPrice"></th></label></tr>
        <tr><label><th>unitcost:</th><th><input type="text" name="unitCost"></th></label></tr>
        <tr><label><th>supplierId:</th><th><input type="text" name="supplierId" readonly value="1"></th></label></tr>
        <tr><label><th>status:</th><th><input type="text" name="status" readonly value="P"></th></label></tr>
        <tr><label><th>attr1:</th><th><input type="text" name="attribute1"></th></label></tr>
        <tr><label><th>attr2:</th><th><input type="text" name="attribute2"></th></label></tr>
        <tr><label><th>attr3:</th><th><input type="text" name="attribute3"></th></label></tr>
        <tr><label><th>attr4:</th><th><input type="text" name="attribute4"></th></label></tr>
        <tr><label><th>attr5:</th><th><input type="text" name="attribute5"></th></label></tr>
        <tr><label><th>是否上架:</th><th><input type="radio" name="isInStore" th:value="1" checked>是<input type="radio" name="isInStore" th:value="0">否</th></label></tr>
        <tr>
            <th colspan="2" style="text-align: center">
                <button type="submit" style="    background: linear-gradient(
                50deg,#ade6ae, #097acc)">确认新增</button>
            </th>
        </tr>
        </table>
    </form>
</div>


<div th:replace="common/bottom"></div>


</body>
</html>